<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="cn.school.dao.*,cn.school.service.*,cn.school.entity.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
Service3 service=new Service3();
Subject s=new Subject();
s.setId(55L);
s.setSubjectName("汽车美容");
s.setClassHour(22L);
s.setGradeId(2L);
int i=service.add(s);
out.print("增加了"+i+"行");
%>
</body>
</html>